import request from '@/utils/request'

// 搜索菜品接口
export const searchDishAPI = (keyword, page = 1, size = 10) => {
  return request({
    url: `/user/dish/search`,
    method: 'GET',
    data:{
      keyword,
      page,
      size
    }
  })
}

// 搜索商家接口
export const searchMerchantAPI = (keyword, page = 1, size = 10) => {
  return request({
    url: `/user/merchant/search`,
    method: 'GET',
    data:{
      keyword,
      page,
      size
    }
  })
}

// 搜索食材接口
export const searchIngredientAPI = (keyword, page = 1, size = 10) => {
  return request({
    url: `/user/ingredient/search`,
    method: 'GET',
    data:{
      keyword,
      page,
      size
    }
  })
}
